package enuM;

public class EnumTest {
	
	
  public static void main(String[] args) {
	Size s=Enum.valueOf(Size.class, "SMALL");
	System.out.println(s);
	System.out.println(Size.SMALL.toString());
	Size[] values=Size.values();
	for(Size v:values){
		System.out.println(v);
	}
	System.out.println(Size.SMALL.ordinal());
	
	
}

}
 enum Size{
	SMALL("s"),BIG("b"),WIDTH("h"),HEIGHT("h");
	private Size(String a){
		this.a=a;
	}
	private String a;
	
	public String getA(){
		return a;
	}
};